package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 硬件权限统计表，存放所有有硬件权限的用户，方便查询
 */
@ApiModel(value = "硬件权限统计表，存放所有有硬件权限的用户，方便查询")
@Data
@TableName(value = "sm_member_activate_statistics")
public class SmMemberActivateStatistics {

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/** 用户ID */
	@TableField(value = "member_id")
	@ApiModelProperty(value = "用户ID")
	private String memberId;
	@TableField(value = "username")
	@ApiModelProperty(value = "用户登录账号")
	private String username;
	/** 权限开始时间 */
	@TableField(value = "start_time")
	@ApiModelProperty(value = "权限开始时间")
	private LocalDateTime startTime;
	/** 权限到期时间 */
	@TableField(value = "end_time")
	@ApiModelProperty(value = "权限到期时间")
	private LocalDateTime endTime;
	/** 0-新用户 1-老用户 */
	@TableField(value = "is_old")
	@ApiModelProperty(value = "0-新用户 1-老用户")
	private String isOld = "0";
	/** 注册来源: 1-APP内部注册用户 2-微信授权注册用户 3-IOS 注册用户 4-上音社合作注册 5-微信小程序注册 6-分享注册 98-培训视频提醒教师注册 99-后台管理注册 */
	@TableField(value = "register_from")
	@ApiModelProperty(value = "注册来源:,1-APP内部注册用户 ,2-微信授权注册用户 ,3-IOS 注册用户 ,4-上音社合作注册 ,5-微信小程序注册 ,6-分享注册 ,98-培训视频提醒教师注册 ,99-后台管理注册")
	private String registerFrom;
	/** 是否是永久权限用户 0-不是 1-是 */
	@TableField(value = "is_forever")
	private String isForever;
	/** 时长 */
	private Integer duration;

	public static final String COL_ID = "id";

	public static final String COL_MEMBER_ID = "member_id";

	public static final String COL_START_TIME = "start_time";

	public static final String COL_END_TIME = "end_time";

	public static final String COL_IS_OLD = "is_old";

	public static final String COL_REGISTER_FROM = "register_from";
}